package cn.fx.framework.spring.w;


import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.core.task.TaskExecutor;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;

import java.util.Properties;

/**
 * @author ljh
 * @since 2018-11-11 21:12
 **/
@ComponentScan(basePackages = {"cn.fx"},
        includeFilters = {@ComponentScan.Filter(
                type = FilterType.REGEX,
                pattern = {
                        "cn.fx.*.service.impl.*ServiceImpl",
                        "cn.fx.*.dao.impl.*DaoImpl",
                        "cn.fx.*.utils.*Util",
                        "cn.fx.*.utils.*Utils"
                }
        )}
)
public class WAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(WStartListener.class)
    public WStartListener wStartListener(){
        return new WStartListener();
    }


}
